<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Document</title>

    <style>
        .outer {
            width: 200px;
            height: 200px;
            border: 2px solid black;
            margin: 0 auto;
            margin-top: 100px;
            /* 开启3D空间 */
            transform-style: preserve-3d;

            /* 设置景深 */
            perspective: 500px;

            /* 设置透视点的位置，默认是开启3D空间元素的正中央，这里就是102px 102px */
            perspective-origin: 102px 102px;
        }

        .inner {
            width: 200px;
            height: 200px;
            background-color: rgba(0, 191, 255, 0.5);
            /* transform: translateZ(60px); */
            transform: rotateY(20deg);
            backface-visibility: hidden;
        }
    </style>
</head>
<body>

    <div class="outer">
        <div class="inner">你好啊</div>

    </div>
    
</body>
</html>